package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_suspend")
public class FSuspend {
    @Id
    private Long tid;

    /**
     * 股票代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 停牌日期
     */
    @Column(name = "suspend_date")
    private String suspendDate;

    /**
     * 复牌日期
     */
    @Column(name = "resume_date")
    private String resumeDate;

    /**
     * 公告日期
     */
    @Column(name = "ann_date")
    private String annDate;

    /**
     * 停牌原因
     */
    @Column(name = "suspend_reason")
    private String suspendReason;

    /**
     * 停牌原因类别
     */
    @Column(name = "reason_type")
    private String reasonType;

    public FSuspend(Long tid, String tsCode, String suspendDate, String resumeDate, String annDate, String suspendReason, String reasonType) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.suspendDate = suspendDate;
        this.resumeDate = resumeDate;
        this.annDate = annDate;
        this.suspendReason = suspendReason;
        this.reasonType = reasonType;
    }

    public FSuspend() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取股票代码
     *
     * @return ts_code - 股票代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置股票代码
     *
     * @param tsCode 股票代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取停牌日期
     *
     * @return suspend_date - 停牌日期
     */
    public String getSuspendDate() {
        return suspendDate;
    }

    /**
     * 设置停牌日期
     *
     * @param suspendDate 停牌日期
     */
    public void setSuspendDate(String suspendDate) {
        this.suspendDate = suspendDate;
    }

    /**
     * 获取复牌日期
     *
     * @return resume_date - 复牌日期
     */
    public String getResumeDate() {
        return resumeDate;
    }

    /**
     * 设置复牌日期
     *
     * @param resumeDate 复牌日期
     */
    public void setResumeDate(String resumeDate) {
        this.resumeDate = resumeDate;
    }

    /**
     * 获取公告日期
     *
     * @return ann_date - 公告日期
     */
    public String getAnnDate() {
        return annDate;
    }

    /**
     * 设置公告日期
     *
     * @param annDate 公告日期
     */
    public void setAnnDate(String annDate) {
        this.annDate = annDate;
    }

    /**
     * 获取停牌原因
     *
     * @return suspend_reason - 停牌原因
     */
    public String getSuspendReason() {
        return suspendReason;
    }

    /**
     * 设置停牌原因
     *
     * @param suspendReason 停牌原因
     */
    public void setSuspendReason(String suspendReason) {
        this.suspendReason = suspendReason;
    }

    /**
     * 获取停牌原因类别
     *
     * @return reason_type - 停牌原因类别
     */
    public String getReasonType() {
        return reasonType;
    }

    /**
     * 设置停牌原因类别
     *
     * @param reasonType 停牌原因类别
     */
    public void setReasonType(String reasonType) {
        this.reasonType = reasonType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", suspendDate=").append(suspendDate);
        sb.append(", resumeDate=").append(resumeDate);
        sb.append(", annDate=").append(annDate);
        sb.append(", suspendReason=").append(suspendReason);
        sb.append(", reasonType=").append(reasonType);
        sb.append("]");
        return sb.toString();
    }
}